package com.example.zjsr.service;


import com.example.zjsr.common.ServerResponse;
import com.example.zjsr.domain.Question;

import java.util.List;

public interface QuestionService {
    ServerResponse<String> add(Question question);

    ServerResponse<Question> findById(Integer id);

    ServerResponse<Question> findAllById(Integer id,Integer roleId);

    List<Question> findByParams(Question question);

    ServerResponse<String> deleteById(Integer id);

    ServerResponse<String> updateById(Question question);

    List<Question> findAll(Integer roleId);

    /**
     * 审核通过，则展示
     * @param id
     * @return
     */
    boolean checkQuestion(Integer id);
}
